package mathematics;

import java.util.Scanner;

/**
 * Created by JiaJia on 2019/9/8 0008.
 */
public class JudgeCircle {
    public static void main(String[] args) {
       Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            String s=scanner.nextLine();
            double rx=scanner.nextDouble();
            double ry=scanner.nextDouble();
            double rr=scanner.nextDouble();
            double bx=scanner.nextDouble();
            double by=scanner.nextDouble();
            double br=scanner.nextDouble();
            double gx=scanner.nextDouble();
            double gy=scanner.nextDouble();
            double gr=scanner.nextDouble();
            System.out.println("红蓝圈"+judge(rx,ry,rr,bx,by,br)+","+
                    "红绿圈"+judge(rx,ry,rr,gx,gy,gr)+","+
                    "蓝绿圈"+judge(bx,by,br,gx,gy,gr));
        }scanner.close();
    }
    private static String judge(double ax,double ay,double ar,double bx,double by,double br){
        String str=new String();
        double d=Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));
        if (d<(ar+br)&&d>Math.abs(ar-br)){
            str="相交";
        }else{
            str="不相交";
        }
        return str;
    }
}